//
//  JGUserFeedbackController.m
//  JGRider
//
//  Created by 单启志 on 2018/1/30.
//  Copyright © 2018年 ffq. All rights reserved.
//  用户反馈

#import "JGUserFeedbackController.h"

@interface JGUserFeedbackController ()<UITextViewDelegate>

@property (weak, nonatomic) IBOutlet UITextView *textView;
@property (weak, nonatomic) IBOutlet UILabel *maxNumberLab;

@end

@implementation JGUserFeedbackController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"用户反馈";
    self.textView.delegate=self;
    
}

-(void)textViewDidChange:(UITextView *)textView{

    NSInteger count= 100- textView.text.length;

    if (count<=0) {
       
    }

    self.maxNumberLab.text=[NSString stringWithFormat:@"%ld",count];
}

#pragma mark - override
-(UIImage *)lmjNavigationBarLeftButtonImage:(UIButton *)leftButton navigationBar:(LMJNavigationBar *)navigationBar{

    return [UIImage imageNamed:@"mine_icon_close"];
}

-(UIImage *)lmjNavigationBarRightButtonImage:(UIButton *)rightButton navigationBar:(LMJNavigationBar *)navigationBar{

    [rightButton setTitle:@"提交" forState:UIControlStateNormal];
    [rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    rightButton.titleLabel.font=[UIFont systemFontOfSize:16];

    return nil;

}

-(void)rightButtonEvent:(UIButton *)sender navigationBar:(LMJNavigationBar *)navigationBar{


}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}




@end
